import 'package:netstorage/model/login_user.dart';

class LoginData {
  String? userToken;
  Map<String,dynamic>? user;

  LoginData({this.userToken,this.user});

  factory LoginData.fromJson(Map<dynamic,dynamic> map){
    return LoginData(
      userToken: map['userToken'],
      user: map['user'],
    );
  }

  Map<String,dynamic> toJson(){
    final Map<String,dynamic> jsonData = <String,dynamic>{};
    jsonData['userToken'] = userToken;
    jsonData['user'] = user;
    return jsonData;
  }

  @override
  String toString(){
    return '{userToken:$userToken, user:${user.toString()}}';
  }
}